﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlApprovePromoteBUM.ascx.cs" Inherits="WebUserControl_ControlApprovePromoteBUM" %>
<%@ Register src="uscTitleForm.ascx" tagname="uscTitleForm" tagprefix="uc1" %>
<%@ Register src="uscMsgBox.ascx" tagname="uscMsgBox" tagprefix="uc2" %>

<script type="text/javascript">
     function pageLoad() {
       $("#<%= btApprove.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
      
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  

<uc1:uscTitleForm ID="uscTitleForm1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
    <uc2:uscMsgBox ID="uscMsgBox1" runat="server" />
    <br />
    <br />
    <asp:GridView ID="GridView1" runat="server" 
        CellPadding="4" ForeColor="#333333" GridLines="Both"
            onrowdatabound="GridView1_RowDataBound">
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <Columns>
            <asp:TemplateField HeaderText="Thăng chức">
                <HeaderTemplate>
                    <asp:CheckBox ID="CheckAll"  onclick="SelectAllCheckboxes(this);" runat="server"/>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CheckApprove" runat="server" />
                </ItemTemplate>
            
                        
            </asp:TemplateField>
           
        </Columns>
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    
    <br />
    <div align="center">
        <asp:Button ID="btApprove" runat="server" Text="Approve" 
            onclick="btApprove_Click" />

    </div>
    <br />
    <br />

</ContentTemplate>
</asp:UpdatePanel>
